package standart;

import java.io.FileInputStream;
import java.io.IOException;

public class GetCertificate {
	String path;

	 public GetCertificate(String path) {
		this.path = path;
	}

	public String Cert() throws IOException {
			FileInputStream cert = new FileInputStream(path);

			String string="";
			while(cert.available()!=0){
				
			string+=(char)cert.read();
			}
			System.out.println(string);
			cert.close();
			return (String) string;

		}
	}

